import { WeaTools } from 'ecCom';

/** *公海设置 */
export const getHighSeasInfo = (type, params = {}) => WeaTools.callApi(`/api/crm/seas/${type}`, 'GET', params);

/** *获取下属人员 */
export const getHrmList = params => WeaTools.callApi('/api/crm/seas/getSubHrmList', 'GET', params);

/** *公海查询列表 */
export const getCustomerSeasList = params => WeaTools.callApi('/api/crm/seas/getCustomerSeasList', 'GET', params);

/** *获取查看公海树 */
export const getSeasTree = params => WeaTools.callApi('/api/crm/seas/getSeasTree', 'GET', params);

/** *获取审批公海树 */
export const seasApproveTree = params => WeaTools.callApi('/api/crm/seas/seasApproveTree', 'GET', params);

/** *获取分配公海树 */
export const seasDispenseTree = params => WeaTools.callApi('/api/crm/seas/seasDispenseTree', 'GET', params);

/** *公海客户申请审批列表 */
export const seasApproveList = params => WeaTools.callApi('/api/crm/seas/seasApproveList', 'GET', params);

/** *公海客户分配列表 */
export const seasDispenseList = params => WeaTools.callApi('/api/crm/seas/seasDispenseList', 'GET', params);

/** *公海客户申领 */
export const applyCustomer = params => WeaTools.callApi('/api/crm/seas/applyCustomer', 'GET', params);

/** *公海客户审批 */
export const approveCustomer = params => WeaTools.callApi('/api/crm/seas/approveCustomer', 'GET', params);

/** *公海客户分配 */
export const dispenseCustomer = params => WeaTools.callApi('/api/crm/seas/dispenseCustomer', 'GET', params);

/** *公海日志 */
export const seasLog = params => WeaTools.callApi('/api/crm/seas/log', 'GET', params);

/** *根据客户公海ID获取客户名称 */
export const getNameByseasCustomerid = params => WeaTools.callApi('/api/crm/seas/getNameByseasCustomerid', 'GET', params);

/** *判断是否具有客户审批页面的权限 */
export const approveRight = params => WeaTools.callApi('/api/crm/seas/approveRight', 'GET', params);

/** *获取条件字段 */
export const getConditionfield = params => WeaTools.callApi('/api/crm/seas/getConditionfield', 'GET', params);
